package practice1;

public class Cylinder extends Circle {
	double height = 1.0;
	
	public Cylinder(){
		
	}
	
	public Cylinder(double radius){
		this.radius = radius; 
	}
	
	public Cylinder(double height, double radius){
		this.height = height;
		this.radius = radius;
	}
	
	public Cylinder(double height, double radius, String color){
		this.height = height;
		this.radius = radius;
		this.color = color;
	}
	
	public double getHeight(){
		return height;
	}
	
	public void setHeight(double height){
		this.height = height;
	}
	
	public double getVolume(){
		return height * getArea();
	}

}
